#ifndef __DIRECTORY_H__
#define __DIRECTORY_H__

#include "block.h"
#include "types.h"


#define INODENR_SIZE 2
#define FILENAME_SIZE 14


typedef struct directory_t
{
	unsigned char inodeNr[USHORT];
	unsigned char filename[FILENAME_SIZE];
} directory_t;


class Directory : public Block
{
	private:
		directory_t * dir;

	public:
		Directory(FILE*, unsigned long);
		virtual ~Directory();
		virtual void print();

		ushort getInodeNr();
		std::string getFilename();
};

#endif
